<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改实验答疑，提问')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-question-edit" th:object="${tbQuestion}">
            <input name="questionId" th:field="*{questionId}" type="hidden">
            <div class="form-group" hidden="hidden">
                <label class="col-sm-3 control-label">问题id：</label>
                <div class="col-sm-8">
                    <input name="questionId" th:field="*{questionId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">问题内容：</label>
                <div class="col-sm-8">
                    <textarea name="questionContent" class="form-control" rows="15" th:field="*{questionContent}"></textarea>
                    <!--<input name="questionContent" th:field="*{questionContent}" class="form-control" type="text">-->
                </div>
            </div>
            <div class="form-group" hidden="hidden">
                <label class="col-sm-3 control-label">提问用户id：</label>
                <div class="col-sm-8">
                    <input name="questionUserId" th:field="*{questionUserId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group" hidden="hidden">
                <label class="col-sm-3 control-label">实验id：</label>
                <div class="col-sm-8">
                    <input name="experimentId" th:field="*{experimentId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group" hidden="hidden">
                <label class="col-sm-3 control-label">是否回复(1.未回复 2.回复)：</label>
                <div class="col-sm-8">
                    <input name="ifResponse" th:field="*{ifResponse}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "system/question";
        $("#form-question-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-question-edit').serialize());
            }
        }
    </script>
</body>
</html>